package Com.Hfzk.Bdqn;

import java.util.Scanner;

public class Job06 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入第一个数字:");
        int figure01 = input.nextInt();
        System.out.print("请输入第二个数字:");
        int figure02 = input.nextInt();
        System.out.print("请输入运算符: (+ , - , * , /)");
        String operator = input.next();
        switch (operator){
            case "+":
                int result01 = figure01 + figure02;
                System.out.println("结果为:" +result01);
                break;
            case "-":
                int resul02 = figure01 - figure02;
                System.out.println("结果为:" +resul02);
                break;
            case "*":
                int resul03 = figure01 * figure02;
                System.out.println("结果为:" +resul03);
                break;
            case "/":
                int resul04 = figure01 / figure02;
                System.out.println("结果为:" +resul04);
                break;
            default:
                System.out.println("符号输入错误!");
                break;
        }
    }
}
